Other Structs
The following structs are available globally.
-
A type-erased
ObserverType.Forwards operations to an arbitrary underlying observer with the same
See moreElementtype, hiding the specifics of the underlying observer type.Declaration
Swift
public struct AnyObserver<Element> : ObserverType
-
Data structure that represents queue.
Complexity of
enqueue,dequeueis O(1) when number of operations is averaged over N operations.Complexity of
See morepeekis O(1).Declaration
Swift
public struct Queue<T>: SequenceType
-
Data structure that represents a bag of elements typed
T.Single element can be stored multiple times.
Time and space complexity of insertion an deletion is O(n).
It is suitable for storing small number of elements.
See moreDeclaration
Swift
public struct Bag<T> : CustomDebugStringConvertible
Other Structs Reference